import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import ShowGrade from '@/components/ShowGrade'
import AddGrade from '@/components/AddGrade'
import UpdateGrade from '@/components/UpdateGrade'
import ShowUser from '@/components/ShowUser'
import Register from '@/components/Register'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/showgrade',
      name: 'ShowGrade',
      component: ShowGrade
    },
    {
      path: '/addgrade',
      name: 'AddGrade',
      component: AddGrade
    },
    {
      path: '/updategrade/:gid',
      name: 'UpdateGrade',
      component: UpdateGrade
    },
    {
      path: '/showuser',
      name: 'ShowUser',
      component: ShowUser
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    }
  ]
})
